import request from '@/utils/request'

// 查询栏目信息列表
export function listInfoColumn(query) {
  return request({
    url: '/business/infoColumn/list',
    method: 'get',
    params: query
  })
}

// 查询栏目信息详细
export function getInfoColumn(columnId) {
  return request({
    url: '/business/infoColumn/' + columnId,
    method: 'get'
  })
}

// 新增栏目信息
export function addInfoColumn(data) {
  return request({
    url: '/business/infoColumn',
    method: 'post',
    data: data
  })
}

// 修改栏目信息
export function updateInfoColumn(data) {
  return request({
    url: '/business/infoColumn',
    method: 'put',
    data: data
  })
}

// 删除栏目信息
export function delInfoColumn(columnId) {
  return request({
    url: '/business/infoColumn/' + columnId,
    method: 'delete'
  })
}
